import {DeleteById_5Res, Query_7Params, Query_7Res, Save_6Params, Save_6Res} from "@/api/base/sk-token/type.ts";
import request from "@/utils/request";
/**
 * query_7
 * @param {object} params SkTokenQueryReq
 * @param {number} params.pageNum
 * @param {number} params.pageSize
 * @returns
 */
export function query(params: Query_7Params): Promise<Query_7Res> {
    return request.post(`/business/admin/skToken/quest-list`, params);
}

/**
 * save_6
 * @param {object} params SkTokenSaveReq
 * @param {number} params.id
 * @param {object} params.date
 * @param {string} params.trainCode
 * @param {number} params.count
 * @param {object} params.createTime
 * @param {object} params.updateTime
 * @returns
 */
export function save(params: Save_6Params): Promise<Save_6Res> {
    return request.post(`/business/admin/skToken/save`, params);
}

/**
 * deleteById_5
 * @param {string} id
 * @returns
 */
export function deleteById(id: number): Promise<DeleteById_5Res> {
    return request.delete(`/business/admin/skToken/delete/${id}`);
}